package com.yb.guigu.pick.core.constant;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/18 16:15
 * FileName: RedisKeyConstant
 * Description:
 */
public class RedisKeyConstant {

    /**
     * 登陆成功后保存到redis数据的key,xczx:user:access_token:{username}
     */
    public static final String LOGIN_USER_ACCESS_TOKEN_KEY="guigu:pick:user:access_token:login:%s";


    /**
     * 登陆成功后保存到redis数据的key,xczx:user:detail:{tokenvalue}
     */
    public static final String LOGIN_USER_DETAIL_KEY="guigu:pick:user:detail:%s";



    /**
     * 请求登陆code,xczx:user:logincode:{code}
     */
    public static final String LOGIN_USER_LOGINCODE_KEY="guigu:pick:user:logincode:%s";


    /**
     * 用户id自增序列，每创建一个用户，增加1，存放与redis
     */
    public static final String GUIGU_PICK_USERID_INCREMENT="guigu:pick:userid:increment";


    /**
     * 用户邮箱登陆验证码
     * guigu:pick:user:email_code:{email}
     */
    public static final String LOGIN_EMAIL_CODE_KEY="guigu:pick:user:email_code:%s";



    /**
     * 用户手机号登陆验证码
     * guigu:pick:user:mobile_code:{mobile}
     */
    public static final String LOGIN_MOBILE_CODE_KEY="guigu:pick:user:mobile_code:%s";


}
